<div class="zs-body" data-ng-init="formInit('gzdevicepurchase', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{id:0}
    }) && loadData('gzdevicepurchase');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">固定资产</a>
            <i class="right-arr"></i>
            <a href="javascript:;">设备采购管理</a>
        </div>
        <div class="option">
            <input type="button" class="zs-btn orange" value="新建" ng-click="addRow('gzdevicepurchase') && openWindow('edit');" />
            <input type="button" class="zs-btn orange" value="编辑" ng-click="editRow('gzdevicepurchase', gzdevicepurchase.sRows[0]) && openWindow('edit')" />
            <input type="button" class="zs-btn orange" value="删除 " ng-click="delEntitys('gzdevicepurchase')" />
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
            <div class="tool item" style="margin-left:6px;">
                <!--<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="ID" ng-model="gzdevicepurchase.queryObject['id']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="I_VERSION" ng-model="gzdevicepurchase.queryObject['iversion']"/>
                </span>-->
                <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="采购编号" ng-model="gzdevicepurchase.queryObject['icgbh']" />
                </span>
                <!--<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="采购说明" ng-model="gzdevicepurchase.queryObject['scgsm']"/>
                </span>-->
                <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="申请单位" ng-model="gzdevicepurchase.queryObject['ssqbm']" />
                </span>
                <!--<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="申请时间" ng-model="gzdevicepurchase.queryObject['dsqsj']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="经办人" ng-model="gzdevicepurchase.queryObject['sjbr']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="联系电话" ng-model="gzdevicepurchase.queryObject['slxdh']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="购买理由" ng-model="gzdevicepurchase.queryObject['sgmly']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="总价" ng-model="gzdevicepurchase.queryObject['szj']"/>
                </span>-->
            </div>
            <div class="operation item" style="margin-top:7px;">
                <input type="button" class="zs-btn orange" value="查询" 
                    ng-click="loadData('gzdevicepurchase')"/>
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table>
                            <thead>
                                <tr>
                                    <th>
                                        <input id="allCheckbox" type="checkbox" ng-click="selectAll('gzdevicepurchase','allCheckbox');" />
                                    </th>
                                    <!--<th>ID</th>
									<th>I_VERSION</th>-->
                                    <th>采购编号</th>
                                    <th>采购说明</th>
                                    <th>申请单位</th>
                                    <th>申请时间</th>
                                    <th>经办人</th>
                                    <th>联系电话</th>
                                    <th>购买理由</th>
                                    <th>总价</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="r in gzdevicepurchase.datas">
                                    <td>
                                        <input type="checkbox" ng-click="selectRow('gzdevicepurchase',r);" ng-model="r.selected" />
                                    </td>
                                    <!--  ID -->
                                    <!--<td>
                                        <a ng-click="editRow('gzdevicepurchase',r) && openWindow('edit');">
                                            <label ng-bind="r.id"></label>
                                        </a>
                                   </td>-->
                                    <!--  I_VERSION -->
                                    <!--<td>
                                        <a ng-click="editRow('gzdevicepurchase',r) && openWindow('edit');">
                                            <label ng-bind="r.iversion"></label>
                                        </a>
                                   </td>-->
                                    <!--  采购编号 -->
                                    <td>
                                        <a ng-click="editRow('gzdevicepurchase',r) && openWindow('edit');">
                                            <label ng-bind="r.icgbh"></label>
                                        </a>
                                    </td>
                                    <!--  采购说明 -->
                                    <td>
                                        <a ng-click="editRow('gzdevicepurchase',r) && openWindow('edit');">
                                            <label ng-bind="r.scgsm"></label>
                                        </a>
                                    </td>
                                    <!--  申请单位 -->
                                    <td>
                                        <a ng-click="editRow('gzdevicepurchase',r) && openWindow('edit');">
                                            <label ng-bind="r.ssqbmName"></label>
                                        </a>
                                    </td>
                                    <!--  申请时间 -->
                                    <td>
                                        <a ng-click="editRow('gzdevicepurchase',r) && openWindow('edit');">
                                            <label ng-bind="r.dsqsj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                    </td>
                                    <!--  经办人 -->
                                    <td>
                                        <a ng-click="editRow('gzdevicepurchase',r) && openWindow('edit');">
                                            <label ng-bind="r.sjbr"></label>
                                        </a>
                                    </td>
                                    <!--  联系电话 -->
                                    <td>
                                        <a ng-click="editRow('gzdevicepurchase',r) && openWindow('edit');">
                                            <label ng-bind="r.slxdh"></label>
                                        </a>
                                    </td>
                                    <!--  购买理由 -->
                                    <td>
                                        <a ng-click="editRow('gzdevicepurchase',r) && openWindow('edit');">
                                            <label ng-bind="r.sgmly"></label>
                                        </a>
                                    </td>
                                    <!--  总价 -->
                                    <td>
                                        <a ng-click="editRow('gzdevicepurchase',r) && openWindow('edit');">
                                            <label ng-bind="r.szj"></label>
                                        </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='gzdevicepurchase'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit" title="设备采购管理编辑" width='560px' height='220px'>
            <div class="zs-form-tab ibox">
                <form name="form" novalidate>
                    <table width="100%">
                        <tbody>
                            <!--<tr>
                                <td class="text" width="20%">ID</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzdevicepurchase.editRow.id" class="zs-input" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">I_VERSION</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzdevicepurchase.editRow.iversion" class="zs-input" />
                                </td>
                            </tr>-->
                            <tr>
                                <td class="text" width="20%">采购编号</td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gzdevicepurchase.editRow.icgbh" class="zs-input" />
                                </td>

                                <td class="text" width="20%">
                                    <font color="red">*</font>采购说明
                                </td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gzdevicepurchase.editRow.scgsm" class="zs-input" />

                                    <span ng-show="false"><input hide-novalidate="true" alias="采购说明" required ng-model="gzdevicepurchase.editRow.scgsm"
                                            name="form_scgsm" /></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">
                                    <font color="red">*</font>申请单位
                                </td>
                                <td class="left" width="30%">
                                    <!--<input type="text" ng-model="gzdevicepurchase.editRow.ssqbm" class="zs-input" />-->
                                    <span>
                                        <ag-Combotree class="zs-input" style="width:175px;height: 28px" fn='dptidEdit'
                                            para="{ uDictionary:true,
													dictionary:'p_department',
													pidField:'pid',
		                    						leafField:'leaf'}"
                                            ng-model="gzdevicepurchase.editRow.ssqbm" text-Value="gzdevicepurchase.editRow.ssqbmName" />

                                    </span>
                                    <span ng-show="false"><input hide-novalidate="true" alias="申请单位" required ng-model="gzdevicepurchase.editRow.ssqbm"
                                            name="form_ssqbm" /></span>
                                </td>

                                <td class="text" width="20%">
                                    <font color="red">*</font>申请时间
                                </td>
                                <td class="left" width="30%">
                                    <ag-Datebox id='fi_dsqsj' showcurday='gzdevicepurchase.editRow.FIELD_ISNEW' class="zs-input"
                                        style="width:175px;height: 28px" ng-model="gzdevicepurchase.editRow.dsqsj">
                                    </ag-Datebox>
                                    <!--<input type="text" ng-model="gzdevicepurchase.editRow.dsqsj" class="zs-input" />-->
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">
                                    <font color="red">*</font>经办人
                                </td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gzdevicepurchase.editRow.sjbr" class="zs-input" />

                                    <span ng-show="false"><input hide-novalidate="true" alias="经办人" required ng-model="gzdevicepurchase.editRow.sjbr"
                                            name="form_sjbr" /></span>
                                </td>

                                <td class="text" width="20%">
                                    <font color="red">*</font>联系电话
                                </td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gzdevicepurchase.editRow.slxdh" class="zs-input" />

                                    <span ng-show="false"><input hide-novalidate="true" alias="联系电话" required ng-model="gzdevicepurchase.editRow.slxdh"
                                            name="form_slxdh" /></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">
                                    <font color="red">*</font>购买理由
                                </td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gzdevicepurchase.editRow.sgmly" class="zs-input" />

                                    <span ng-show="false"><input hide-novalidate="true" alias="购买理由" required ng-model="gzdevicepurchase.editRow.sgmly"
                                            name="form_sgmly" /></span>
                                </td>

                                <td class="text" width="20%">
                                    <font color="red">*</font>总价
                                </td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gzdevicepurchase.editRow.szj" class="zs-input" />

                                    <span ng-show="false"><input hide-novalidate="true" alias="附件" required ng-model="gzdevicepurchase.editRow.szj"
                                            name="form_szj" /></span>
                                </td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="4">
                                    <input type="button" name="ok" value="保存" class="zs-btn c-red" ng-click="formValidate(form) && save('gzdevicepurchase', gzdevicepurchase.editRow, saveCloseWindow)" />
                                    <input type="button" name="ok" value="取消" class="zs-btn c-green" ng-click="closeWindow('edit')" />
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>